
import { Navigate } from 'react-router-dom'
import Build from '../components/Build'
import { lazy } from 'react'
import {MoneyCollectOutlined,UsergroupAddOutlined,AccountBookOutlined,ToolOutlined} from '@ant-design/icons'
import Assets from '../components/Assets'
import Space from '../components/Space'
import Customer from '../components/Customer'
import Sign from '../components/Sign'
import Lease from '../components/Lease'
import Manage from '../components/Manage'
import Redirect from '../components/Redirect'
export default [
    {
        label:'资产',
        key:'assets',
        icon:<MoneyCollectOutlined />,
        path:'assets',
        element:<Assets></Assets>,
        children:[
            {
                label:'楼宇',
                key:'build',
                path:'build',
                element:<Redirect comp={<Build></Build>} path='/home/assets/build'></Redirect>
            },
            {
                label:'空间',
                key:'space',
                path:'space',
                element:<Redirect comp={<Space></Space>} path='/home/assets/space'></Redirect>
            }
        ]
    },
    {
        label:'客户',
        key:'customer',
        icon:<UsergroupAddOutlined />,
        path:'customer',
        element:<Customer></Customer>,
        children:[
            {
                label:'客户管理',
                key:'manage',
                path:'manage',
                element:<Redirect comp={<Manage></Manage>} path='/home/customer/manage'></Redirect>
            },
            {
                label:'签约联系人',
                key:'sign',
                path:'sign',
                element:<Redirect comp={<Sign></Sign>} path='/home/customer/sign'></Redirect>
            },
            {
                label:'租期管理员',
                key:'lease',
                path:'lease',
                element:<Redirect comp={<Lease></Lease>} path='/home/customer/lease'></Redirect>
            },
        ]
    } ,
    {
        label:'招商',
        key:'invest',
        icon:<AccountBookOutlined />,
        path:'invest',
        element:<Customer></Customer>,
        children:[
            {
                label:'空间定价',
                key:'kong',
                path:'kong',
                element:<Redirect comp={<Manage></Manage>} path='/home/invest/space'></Redirect>
            },
            {
                label:'租控',
                key:'zukong',
                path:'zukong',
                element:<Redirect comp={<Sign></Sign>} path='/home/invest/zukong'></Redirect>
            },
            {
                label:'租约',
                key:'zuyue',
                path:'zuyue',
                element:<Redirect comp={<Lease></Lease>} path='/home/invest/zuyue'></Redirect>
            },
        ]
    },
    {
        label:'物业服务',
        key:'wuye',
        icon:<ToolOutlined />,
        path:'wuye',
        element:<Customer></Customer>,
        children:[
            {
                label:'租期管理',
                key:'zu',
                path:'zu',
                element:<Redirect comp={<Manage></Manage>} path='/home/invest/space'></Redirect>
            },
            {
                label:'租户保修',
                key:'hu',
                path:'hu',
                element:<Redirect comp={<Sign></Sign>} path='/home/invest/zukong'></Redirect>
            },
            {
                label:'报修设置',
                key:'bao',
                path:'bao',
                element:<Redirect comp={<Lease></Lease>} path='/home/invest/zuyue'></Redirect>
            },
            {
                label:'管理员公告',
                key:'gaun',
                path:'gaun',
                element:<Redirect comp={<Lease></Lease>} path='/home/invest/zuyue'></Redirect>
            },
            {
                label:'管理员反馈',
                key:'li',
                path:'li',
                element:<Redirect comp={<Lease></Lease>} path='/home/invest/zuyue'></Redirect>
            },
            {
                label:'物业须知',
                key:'xu',
                path:'xu',
                element:<Redirect comp={<Lease></Lease>} path='/home/invest/zuyue'></Redirect>
            },
        ]
    },
]